/*    */ package com.zimbra.cs.imap;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class SearchCommand
/*    */   extends ImapCommand
/*    */ {
/*    */   private ImapSearch search;
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   private Integer options;
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public SearchCommand(ImapSearch search, Integer options)
/*    */   {
/* 26 */     this.search = search;
/* 27 */     this.options = options;
/*    */   }
/*    */   
/*    */   public ImapSearch getSearch() {
/* 31 */     return this.search;
/*    */   }
/*    */   
/*    */   public Integer getOptions() {
/* 35 */     return this.options;
/*    */   }
/*    */   
/*    */   public int hashCode()
/*    */   {
/* 40 */     int prime = 31;
/* 41 */     int result = 1;
/* 42 */     result = 31 * result + (this.options == null ? 0 : this.options.hashCode());
/* 43 */     result = 31 * result + (this.search == null ? 0 : this.search.hashCode());
/* 44 */     return result;
/*    */   }
/*    */   
/*    */   public boolean equals(Object obj)
/*    */   {
/* 49 */     if (this == obj) {
/* 50 */       return true;
/*    */     }
/* 52 */     if (obj == null) {
/* 53 */       return false;
/*    */     }
/* 55 */     if (getClass() != obj.getClass()) {
/* 56 */       return false;
/*    */     }
/* 58 */     SearchCommand other = (SearchCommand)obj;
/* 59 */     if (this.options == null) {
/* 60 */       if (other.options != null) {
/* 61 */         return false;
/*    */       }
/* 63 */     } else if (!this.options.equals(other.options)) {
/* 64 */       return false;
/*    */     }
/* 66 */     if (this.search == null) {
/* 67 */       if (other.search != null) {
/* 68 */         return false;
/*    */       }
/* 70 */     } else if (!this.search.equals(other.search)) {
/* 71 */       return false;
/*    */     }
/* 73 */     return true;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/imap/SearchCommand.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */